#include <iostream>
#include "./include/Rngs.h"
using namespace std;
int main()
{

  RngBase *x;
  x = new NormalGen(2, 16);

  int N=11;

  for (int i=0; i< N; i++) {
    cout<<" "<<x->genNext()<<" ";
  }

  cout<<"\n after restart "<<endl;

  x->restart();

  for (int i=0; i< N; i++) {
    cout<<" "<<x->genNext()<<" ";
  }

  cout<<"\n after move to next sub "<<endl;
  x->startNextSub();

  for (int i=0; i< N; i++) {
    cout<<" "<<x->genNext()<<" ";
  }

  cout<<"\n after restart the sub "<<endl;
  x->restartSub();

  for (int i=0; i< N; i++) {
    cout<<" "<<x->genNext()<<" ";
  }

  cout<<"\n after restart "<<endl;
  x->restart();

  for (int i=0; i< N; i++) {
    cout<<" "<<x->genNext()<<" ";
  }


}
